<?php

/**
 * \file
 * Classe `Address`.
 */

namespace pilar\Entities /* \cond */ ; /* \endcond */
{

/**
 * Membre numérique d'adresse postale.
 *
 * \since 03/02/2009
 * \author Olivier LEMASLE <o.lemasle@gmail.com>
 */
class Address extends Member {

protected function loadDefaultParams() {
 parent::loadDefaultParams();
 
 $this->params->set(array(
  'genre' => 'she',
  'formClass' => '\\pilar\\SimpleFormMembers\\Address',
  'searchFormClass' => '\\pilar\\SearchFormMembers\\Address'
 ));
}


protected function initialize() {
 parent::initialize();

 $this->addField(
  new \pilar\Entities\Fields\Varchar(array(
   'name' => 'line1',
   'maxLength' => 100
  ))
 )->addField(
  new \pilar\Entities\Fields\Varchar(array(
   'name' => 'line2',
   'maxLength' => 100
  ))
 )->addField(
  new \pilar\Entities\Fields\Varchar(array(
   'name' => 'zipCode',
   'maxLength' => '10'
  ))
 )->addField(
  new \pilar\Entities\Fields\Varchar(array(
   'name' => 'city',
   'maxLength' => '30'
  ))
 )->addField(
  new \pilar\Entities\Fields\Varchar(array(
   'name' => 'country',
   'maxLength' => '30'
  ))
 );
}


} // Class.

} // Namespace.

?>
